home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2657 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: crc-news.doc.ca!usenet
  2. From: Slobodan Celenkovic <slobodan@cs.unh.edu>
  3. Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.c++
  4. Subject: Re: C++ with Zapp vs. Delphi
  5. Date: 18 Jan 1996 23:19:36 GMT
  6. Organization: The Communications Research Centre
  7. Message-ID: <4dmki8$6sv@crc-news.doc.ca>
  8. References: <4coar6$d4n@sun4.bham.ac.uk> <4coip7$69s@news1.usa.pipeline.com>    <fRA+w0JfFG5X089yn@oslonett.no> <4dcc4d$6anc@tigger.cc.uic.edu>    <4ddke3$5lf@fountain.mindlink.net>    <NEWTNews.821822862.4682.keith@keith.gpim.xerox.com>    <4dmdcd$6sv@crc-news.doc.ca> <AUSTERN.96Jan18140655@isolde.mti.sgi.com>
  9. NNTP-Posting-Host: celenkovic.bob.fob003.ic.gc.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15. austern@isolde.mti.sgi.com (Matt Austern) wrote:
  16. >
  17. >Multiple inheritance of implementations can get messy and is rarely
  18. >needed.  Multiple inheritance of interfaces, though, is extremely
  19. >common; there are lots of designs that are absolutely impossible
  20. >without it.  And even in the case of implementation inheritance:
  21. >please note that I said "rarely needed", not "never needed".
  22. >
  23. >Nor is multiple inheritance a feature that's unique to C++.  It's
  24. >supported by C++, Eiffel, Sather, Java, CLOS, and other languages.
  25. >(In Java it only applies interfaces.)
  26. >-- 
  27. >Matt Austern
  28. >SGI: MTI Compilers Group
  29. >austern@isolde.mti.sgi.com
  30.  
  31. Ok, lack of expirience. Could you please give me a "typical" example 
  32. where MI is needed for interfaces? Could these things be done using the 
  33. "use" relationship instead of multiple inheritance (have a class use 
  34. other class as data members instead of inheriting from them)?
  35.  
  36.